package factoryMode.prefectDemo.simple.factory;

import factoryMode.prefectDemo.simple.fruit.Fruit;

/**
 * @author： pang-yun
 * @date： 2021-10-22 00:39
 * 功能目的 ：用于
 */

public class Store {
    public static void main(String[] args) {
        Fruit apple = FruitFactory.createFruit("Apple");
        apple.what();
        Fruit pear = FruitFactory.createFruit("Pear");
        pear.what();
    }
}
